<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pFcode
 *
 * @ORM\Table(name="p2p_fcode")
 * @ORM\Entity
 */
class P2pFcode
{
    /**
     * @var integer
     *
     * @ORM\Column(name="redid", type="integer", nullable=false)
     */
    private $redid;

    /**
     * @var string
     *
     * @ORM\Column(name="fcode", type="string", length=20, nullable=false)
     */
    private $fcode;

    /**
     * @var string
     *
     * @ORM\Column(name="recommend", type="string", length=20, nullable=false)
     */
    private $recommend;

    /**
     * @var integer
     *
     * @ORM\Column(name="uid", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $uid;



    /**
     * Set redid
     *
     * @param integer $redid
     *
     * @return P2pFcode
     */
    public function setRedid($redid)
    {
        $this->redid = $redid;

        return $this;
    }

    /**
     * Get redid
     *
     * @return integer
     */
    public function getRedid()
    {
        return $this->redid;
    }

    /**
     * Set fcode
     *
     * @param string $fcode
     *
     * @return P2pFcode
     */
    public function setFcode($fcode)
    {
        $this->fcode = $fcode;

        return $this;
    }

    /**
     * Get fcode
     *
     * @return string
     */
    public function getFcode()
    {
        return $this->fcode;
    }

    /**
     * Set recommend
     *
     * @param string $recommend
     *
     * @return P2pFcode
     */
    public function setRecommend($recommend)
    {
        $this->recommend = $recommend;

        return $this;
    }

    /**
     * Get recommend
     *
     * @return string
     */
    public function getRecommend()
    {
        return $this->recommend;
    }

    /**
     * Get uid
     *
     * @return integer
     */
    public function getUid()
    {
        return $this->uid;
    }
}
